#include <catch2/catch.hpp>

#include <cmath>

#include "solution.hpp"

using namespace solution_078;

TEST_CASE("78. Subsets", "[078]") {
    SECTION("example 1") {
        auto subsets = Solution().subsets({1,2,3});
        CAPTURE(subsets);
        CHECK(subsets.size() == (size_t)std::pow(2, 3));
    }
    SECTION("example 2") {
        auto subsets = Solution().subsets({0});
        CAPTURE(subsets);
        CHECK(subsets.size() == (size_t)std::pow(2, 1));
    }
}
